import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询预测报告管理全部
export const compForeReportList = data => {
    return $get('/alarm/compForeReport/list', data)
}

// 查询预测报告管理列表
export const compForeReportPage = data => {
    return $get('/alarm/compForeReport/page', data)
}

// 新增预测报告管理
export const compForeReportAdd = data => {
    return $post('/alarm/compForeReport/add', data)
}

// 查询预测报告管理详情
export const compForeReportDetail = id => {
    return $get('/alarm/compForeReport/detail/'+ id)
}

// 更新预测报告管理
export const compForeReportUpdate = data => {
    return $post('/alarm/compForeReport/update', data)
}

// 删除预测报告管理
export const compForeReportDelete = id => {
    return $post('/alarm/compForeReport/delete/'+ id)
}

// 导出预测报告管理
export const compForeReportExport = (data,fileName) => {
    return $download('/alarm/compForeReport/export',data, fileName)
}
